package Task_03;

public class UserConsume {
    // 统计余额、通话时长、上网流量
    private int consumeValue;
    private int consumeCallDuration;
    private int consumeNetworkData;

    public void setConsumeValue(int consumeValue) {
        this.consumeValue = consumeValue;
    }

    public void setConsumeCallDuration(int consumeCallDuration) {
        this.consumeCallDuration = consumeCallDuration;
    }

    public void setConsumeNetworkData(int consumeNetworkData) {
        this.consumeNetworkData = consumeNetworkData;
    }

    public int getConsumeValue() {
        return consumeValue;
    }

    public int getConsumeCallDuration() {
        return consumeCallDuration;
    }

    public int getConsumeNetworkData() {
        return consumeNetworkData;
    }

    // 打印消费情况
    public void showInfo() {
        System.out.printf("\n消费情况：您已通话%d分钟；流量使用%dGB;合计消费%d元。", consumeCallDuration, consumeNetworkData, consumeValue);
    }
}